{extend name="ashippingmanagement3/Public/base" /}
{block name="container"}
<!-- 标题 -->
<div class="page-heade">
    <h1 class="title_color">查看网点零售数据</h1>
</div>
<!-- 标题 -->
<div>
    <form id="form_id" action="" class="form-inline" method="post">
        <table class="row-margin-top tab-content table-bordered table text-left" border="1">
            <tr>
                <td style="min-width: 140px" class="text-right"><label for="" class="form-label">日期：</label></td>
                <td>{$data['wdDate']}</td>
            </tr>
            <tr>
                <td style="min-width: 140px;width: 140px" class="text-right"><label for="" class="form-label">网点名称：</label></td>
                <td>
                 {$data['wd']}
                </td>
            </tr>
            <tr>
                <td style="min-width: 140px" class="text-right"><label for="" class="form-label">产品名称：</label></td>
                <td>
                    {$data['cp']}
                </td>
            </tr>
            <tr>
                <td style="min-width: 140px" class="text-right"><label for="" class="form-label">单位：</label></td>
                <td>
                    {$data['dw']}
                </td>
            </tr>
            <tr>
                <td style="min-width: 140px" class="text-right"><label for="" class="form-label">单价：</label></td>
                <td>{$data['dj']}</td>
            </tr>
            <tr>
                <td style="min-width: 140px" class="text-right"><label for="" class="form-label">数量：</label></td>
                <td>{$data['num']}</td>
            </tr>
            <tr>
                <td style="min-width: 140px" class="text-right"><label for="" class="form-label">金额(元)：</label></td>
                <td>
                    {$data['money']}
                </td>
            </tr>
            <tr>
                <td style="min-width: 140px" class="text-right"><label for="" class="form-label">导购人员：</label></td>
                <td>
                   {$data['dgUser']}
                </td>
            </tr>
            <tr>
                <td style="min-width: 140px" class="text-right"><label for="" class="form-label">批号/批次：</label></td>
                <td>{$data['phpc']}</td>
            </tr>
            <tr>
                <td style="min-width: 140px" class="text-right" rowspan="2"><label for="" class="form-label">备注：</label></td>
                <td>
                    {$data['des']}
                </td>
            </tr>
        </table>
        <div class="form-group white-bg" style="margin:20px 10px 20px 20px" id="upfileDiv">
            <!--<input type="file" id="exampleInputFile" name="exampleInputFile">-->
            <input type="button" name="uploadify" id="uploadify" value="附件">
            <div id="uploadifyQueue">
                {volist name="$uploadify" id="list"}
                <?php $list['path'] = str_replace('\\','/',$list['path']);?>
                <div class="uploadifive-queue-item complete showFile" uri='{$list.uri}'
                     id="uploadifive-offerFile-file-{$key}">
                    <div>
                                <span class="filename">
                                                <a onclick="visitfile('{$list.path}');">
                                                    {$list.file_name}
                                                </a>
                                </span>
                    </div>
                </div>
                {/volist}
                <script>
                    $('.close_url').click(function () {
                        var paclose = $(this).parent('.showFile');
                        paclose.hide(300, function () {
                                paclose.remove();
                            }
                        );
                    });

                    function visitfile(file) {
                        var exts = file.split(".");
                        var ext = exts[1];
                        var files = file.split("/");
                        var filename = files[4];
                        if (ext == "jpg" || ext == "png" || ext == "gif" || ext == "jpeg") {
                            window.open(file, '_blank');
                        } else {
                            window.open("/index/Ashippingmanagement/downFile?path=" + file, '_self');
                        }
                    }

                </script>
            </div>
            </div>
        <div class="text-center">
            <button class="btn btn-warning" type="button" style="margin-left: 20px" onclick="back()">关闭</button>
        </div>
    </form>
</div>
{/block}
